package org.meteorshower.controller;


import com.baomidou.mybatisplus.extension.service.IService;
import org.meteorshower.domain.Device;
import org.meteorshower.service.IDeviceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
@ResponseBody
@RequestMapping("/api/device")
public class DeviceController extends BaseController<Device>{

    private final IDeviceService deviceService;

    @Autowired
    public DeviceController(IDeviceService deviceService) {
        this.deviceService = deviceService;
    }

    @Override
    public IService<Device> getService() {
        return deviceService;
    }
}
